Method, system, and device for displaying geometry in editor, and medium

ABSTRACT

Disclosed are a method, a system and a device for displaying a geometry in an editor, and a medium, which are applied to the technical field of two-dimensional/three-dimensional modeling. The method for displaying a geometry in an editor comprises: determining a Boolean operation and a plurality of geometries in a space window (102); calculating the plurality of geometries in the space window according to the Boolean operation, so as to obtain a composite geometry in the space window (104); creating a plurality of objects in the resource list, wherein the plurality of objects respectively correspond to the composite geometry and the plurality of geometries that are calculated to obtain the composite geometry, and setting objects corresponding to the plurality of geometries as sub-nodes of an object corresponding to the composite geometry; and returning to the step of determining a Boolean operation and a plurality of geometries in the space window. The method solves the technical problems in the prior art that a final geometry obtained by multiple Boolean operations is only displayed, while a subordination relationship between the final geometry and an intermediate geometries cannot be displayed intuitively, and the intermediate geometries cannot be modified directly.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.17/277,695, filed Mar. 18, 2021, which is a 371 of PCT Application No.PCT/CN2018/121228, filed Dec. 14, 2018, which claims the benefit ofChinese Patent Application No. 201811172631.6, filed Oct. 9, 2018. Allof the foregoing are hereby incorporated herein by reference in theirentirety.

TECHNICAL FIELD

The present disclosure relates to a technical field of two-dimensional(2D)/three-dimensional (3D) modeling, and in particular to a method, asystem, a device for displaying a geometry in an editor, and a medium.

BACKGROUND

In an editor of a 2D/3D modeling software, users can obtain a compositegeometry by calculating plurality of simple geometries. Calculationsinclude intersection, union, negation, etc. Such calculations aregenerally referred to Boolean operations. In addition, in order toobtain more complex composite geometries, plurality of Booleanoperations are often required, and a current Boolean operation isperformed on a result of a previous Boolean operation.

In the prior art, as shown in FIG. 1 , in order to obtain a roundedcorner wall in an editor, the following steps are usually included: 1)Generate a cylinder 1; 2) Generate a cylinder 2, and set the cylinder 2to be in a negation state; 3) Merge the cylinder 1 with the negation ofcylinder 2 to form a first geometry, that is, a hollow cylinder; 4)Generate a cuboid 3, and set the cuboid 3 to be in a negation state; 5)Merge the first geometry with the negation of the cuboid 3 to form asecond geometry, that is, a one-half hollow cylinder; 6) Generate acuboid 4 and set the cuboid 4 to be in a negation state; 7) Merge thesecond geometry with the negation of the cuboid 4 to form a thirdgeometry, that is, a quarter hollow cylinder; 8) Generate a cuboid 5 anda cuboid 6; 9) Merge the third geometry with the cuboid 5 and the cuboid6 to form a fourth geometry, that is, the rounded corner wall.

However, only the rounded corner wall obtained by plurality of Booleanoperations is stored in the prior art. If the user wants to modify athickness of the wall, such as reduce a diameter of the cylinder 2, theuser can only redo the above steps. Consequently, in the prior art, onlya final geometry obtained by plurality of Boolean operations isdisplayed, a subordination relationship between the final geometry andan intermediate geometry cannot be intuitively displayed, and theintermediate geometry cannot be directly modified.

SUMMARY

An objective of the present disclosure is to provide a method, a system,and a device for displaying a geometry in an editor, and a medium, tosolve a technical problem in the prior art that only a final geometryobtained by a plurality of Boolean operations is displayed, asubordination relationship between the final geometry and anintermediate geometry cannot be intuitively displayed, and theintermediate geometry cannot be directly modified.

An embodiment of the present disclosure discloses a method fordisplaying a geometry in an editor, where the editor includes a spacewindow and a resource list, and the method includes:

-   -   determining a Boolean operation and a plurality of geometries in        the space window;    -   calculating the plurality of geometries in the space window        according to the Boolean operation to obtain a composite        geometry in the space window;    -   creating a plurality of objects in the resource list, wherein        the plurality of objects respectively correspond to the        composite geometry and the plurality of geometries that are        calculated to obtain the composite geometry, and setting objects        corresponding to the plurality of geometries as sub-nodes of an        object corresponding to the composite geometry; and

returning to the step of determining a Boolean operation and a pluralityof geometries in the space window, wherein when it is determined thatthere is no Boolean operation, the obtained composite geometry in thespace window is a final composite geometry, and the plurality of objectscreated in the resource list are final objects.

Optionally, when the plurality of geometries in the space window aredetermined, the plurality of geometries comprise a composite geometry.

Optionally, if a geometry corresponding to an object that is set as asub-node is a composite geometry, a plurality of objects are furthercreated in the resource list, wherein the plurality of objectsrespectively correspond to the plurality of geometries that arecalculated to obtain the composite geometry, and the plurality ofobjects are set as sub-nodes of the object that is set as a sub-node.

Optionally, the object with sub-nodes comprises an expanded state and aretracted state.

Optionally, when the object with sub-nodes is switched from theretracted state to the expanded state,

-   -   the object with sub-nodes and the object that is set as a        sub-node are set to be displayed in the resource list; and    -   the geometry corresponding to the object with sub-nodes is set        to be hidden in the space window, and the geometry corresponding        to the object that is set as a sub-node is set to be displayed.

Optionally, if the geometry corresponding to the object that is set as asub-node is a composite geometry, the object corresponding to thecomposite geometry is switched from the retracted state to the expandedstate.

Optionally, when the object with sub-nodes is switched from the expandedstate to the retracted state,

it is determined whether the geometry corresponding to the object thatis set as a sub-node is modified;

if the geometry corresponding to the object that is set as a sub-node ismodified, the Boolean operation is re-performed on the modified geometryand the remaining unmodified geometry, wherein the Boolean operation isperformed to obtain the geometry corresponding to the object withsub-nodes, so as to obtain a new composite geometry in the space window;a plurality of new objects are created in the resource list, wherein theplurality of new objects respectively correspond to the new compositegeometry, the modified geometry, and the remaining unmodified geometry,and replace the object with sub-nodes and the object that is set as asub-node; the object corresponding to the new composite geometry is setto be displayed, and the objects corresponding to the modified geometryand the remaining unmodified geometry are set to be hidden; the newcomposite geometry is set to be displayed and the modified geometry andthe remaining unmodified geometry are set to be hidden in the spacewindow; and

if no geometry corresponding to the object that is set as a sub-node ismodified, the object with sub-nodes is set to be displayed and theobject that is set as a sub-node is set to be hidden in the resourcelist; the geometry corresponding to the object with sub-nodes is set tobe displayed and the geometry corresponding to the object that is set asa sub-node is set to be hidden in the space window.

Optionally, if the geometry corresponding to the object that is set as asub-node is modified, the Boolean operation is re-performed on themodified geometry and the remaining unmodified geometry, wherein theBoolean operation is performed to obtain the geometry corresponding tothe object with sub-nodes, so as to obtain a new composite geometry inthe space window; a plurality of new objects are created in the resourcelist, wherein the plurality of new objects respectively correspond tothe new composite geometry and the modified geometry, and replace theobject with sub-nodes and the object corresponding to the geometry to bemodified; the object corresponding to the new composite geometry is setto be displayed, and the objects corresponding to the modified geometryand the remaining unmodified geometry are set to be hidden; the newcomposite geometry is set to be displayed and the modified geometry andthe remaining unmodified geometry are set to be hidden in the spacewindow.

Optionally, if the geometry corresponding to the object that is set as asub-node is modified, the Boolean operation is re-performed on themodified geometry and the remaining unmodified geometry, and the Booleanoperation is performed to obtain the geometry corresponding to theobject with sub-nodes, so as to obtain a new composite geometry in thespace window; in the resource list, the object with sub-nodescorresponds to the new composite geometry, and the object correspondingto the geometry to be modified corresponds to the modified geometry; theobject corresponding to the new composite geometry is set to bedisplayed, and the objects corresponding to the modified geometry andthe remaining unmodified geometry is set to be hidden; the new compositegeometry is set to be displayed and the modified geometry and theremaining unmodified geometry are set to be hidden in the space window.

Optionally, if the geometry to be modified is a composite geometry, theobject corresponding to the composite geometry is switched from theexpanded state to the retracted state.

An embodiment of the present disclosure further discloses a system fordisplaying a geometry in an editor, where the editor includes a spacewindow and a resource list, and the system includes:

-   -   a determining unit configured to determine a Boolean operation        and a plurality of geometries in the space window;    -   a calculation unit configured to calculate the plurality of        geometries in the space window according to the Boolean        operation to obtain a composite geometry in the space window;    -   an object creating unit configured to create a plurality of        objects in the resource list, wherein the plurality of objects        respectively correspond to the composite geometry and the        plurality of geometries that are calculated to obtain the        composite geometry, and set the objects corresponding to the        plurality of geometries as sub-nodes of an object corresponding        to the composite geometry; and    -   return to the determining unit, wherein when the determining        unit determines that there is no Boolean operation, the        composite geometry obtained by the calculation unit in the space        window is a final composite geometry, and the plurality of        objects created by the object creating unit in the resource list        are final objects.

Optionally, when the plurality of geometries in the space window aredetermined, the plurality of geometries comprise a composite geometry.

Optionally, if the geometry corresponding to an object that is set as asub-node is a composite geometry, the object creating unit furthercreates a plurality of objects in the resource list, wherein theplurality of objects respectively correspond to the plurality ofgeometries that are calculated to obtain the composite geometry, and setthe plurality of objects as sub-nodes of the object that is set as asub-node.

Optionally, the object with sub-nodes comprises an expanded state and aretracted state.

Optionally, the system further comprises an object state switching unit,and when the object with sub-nodes is switched from the retracted stateto the expanded state, the object state switching unit is configured to:

-   -   set the object with sub-nodes and the object that is set as a        sub-node to be displayed in the resource list; and    -   set the geometry corresponding to the object with sub-nodes to        be hidden in the space window, and set the geometry        corresponding to the object that is set as a sub-node to be        displayed.

Optionally, if the geometry corresponding to the object that is set as asub-node is a composite geometry, the object state switching unit isconfigured to switch the object corresponding to the composite geometryfrom the retracted state to the expanded state.

Optionally, the system further comprises an object state switching unit,and when the object with sub-nodes is switched from the expanded stateto the retracted state, the object state switching unit is configuredto:

-   -   determine whether the geometry corresponding to the object that        is set as a sub-node is modified;    -   if the geometry corresponding to the object that is set as a        sub-node is modified, re-perform the Boolean operation on the        modified geometry and the remaining unmodified geometry, wherein        the Boolean operation is performed to obtain the geometry        corresponding to the object with sub-nodes, so as to obtain a        new composite geometry in the space window; create a plurality        of new objects in the resource list, wherein the plurality of        new objects respectively correspond to the new composite        geometry, the modified geometry, and the remaining unmodified        geometry, and replace the object with sub-nodes and the object        that is set as a sub-node; set the object corresponding to the        new composite geometry to be displayed, and set the objects        corresponding to the modified geometry and the remaining        unmodified geometry to be hidden; set the new composite geometry        be displayed, and set the modified geometry and the remaining        unmodified geometry to be hidden in the space window; and    -   if no geometry corresponding to the object that is set as a        sub-node is modified, set the object with sub-nodes to be        displayed and set the object that is set as a sub-node to be        hidden in the resource list; set the geometry corresponding to        the object with sub-nodes to be displayed and set the geometry        corresponding to the object that is set as a sub-node to be        hidden in the space window.

Optionally, if the geometry corresponding to the object that is set as asub-node is modified, the Boolean operation is re-performed on themodified geometry and the remaining unmodified geometry, wherein theBoolean operation is performed to obtain the geometry corresponding tothe object with sub-nodes, so as to obtain a new composite geometry inthe space window; a plurality of new objects are created in the resourcelist, and the plurality of new objects respectively correspond to thenew composite geometry and the modified geometry, and replace the objectwith sub-nodes and the object corresponding to the geometry to bemodified; the object corresponding to the new composite geometry is setto be displayed, and the objects corresponding to the modified geometryand the remaining unmodified geometry are set to be hidden; the newcomposite geometry is set to be displayed and the modified geometry andthe remaining unmodified geometry are set to be hidden in the spacewindow.

Optionally, if the geometry corresponding to the object that is set as asub-node is modified, the Boolean operation is re-performed on themodified geometry and the remaining unmodified geometry, and the Booleanoperation is performed to obtain the geometry corresponding to theobject with sub-nodes, so as to obtain a new composite geometry in thespace window; in the resource list, the object with sub-nodescorresponds to the new composite geometry, and the object correspondingto the geometry to be modified corresponds to the modified geometry; theobject corresponding to the new composite geometry is set to bedisplayed, and the objects corresponding to the modified geometry andthe remaining unmodified geometry are set to be hidden; the newcomposite geometry is set to be displayed and the modified geometry andthe remaining unmodified geometry are set to be hidden in the spacewindow.

Optionally, if the geometry to be modified is a composite geometry, theobject state switching unit is used to switch the object correspondingto the composite geometry from the expanded state to the retractedstate.

An embodiment of the present disclosure further discloses a device fordisplaying a geometry in an editor, the device includes a memory inwhich a computer-executable instruction is stored and a processor, andthe processor is configured to execute the instruction to implement amethod for displaying a geometry in an editor.

An embodiment of the present disclosure further discloses a non-volatilecomputer storage medium coded with a computer program, where thecomputer program includes an instruction, and the instruction isexecuted by more than one computer to implement a method for displayinga geometry in an editor.

Compared with the prior art, main differences and effects of theembodiments of the present disclosure are as follows:

In the present disclosure, the objects in the resource list correspondto the geometries in the space window, and there is a hierarchicalrelationship between the objects in the resource list, so as tointuitively display a composite geometry and a subordinationrelationship between the plurality of geometries that are calculated toobtain the composite geometry in the space window. In addition, anobject with sub-nodes includes an expanded state and a retracted state.The user can directly modify an object that is set as a sub-node,thereby modifying a geometry corresponding to the object with sub-nodes.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a schematic diagram of a rounded corner wall obtained in aneditor according to the prior art;

FIG. 2 is a schematic flowchart of a method for displaying a geometry inan editor;

FIG. 3 is a schematic diagram of a hierarchical relationship of aplurality of objects in a resource list;

FIG. 4 is another schematic diagram of a hierarchical relationship of aplurality of objects in a resource list;

FIG. 5 is another schematic diagram of a hierarchical relationship of aplurality of objects in a resource list;

FIG. 6 is a schematic diagram that all objects with sub-nodes in aresource list are in an expanded state;

FIG. 7 is a schematic diagram that all objects with sub-nodes in aresource list are in a retracted state;

FIG. 8 is a schematic structural diagram of a system for displaying ageometry in an editor; and

FIG. 9 is another structural diagram of a system for displaying ageometry in an editor.

DETAILED DESCRIPTION OF EMBODIMENTS

In the following description, many technical details are proposed forthe reader to better understand the application. However, a person ofordinary skill in the art can understand that the technical solutionsprotected by the claims of this application can be implemented evenwithout these technical details and various changes and modificationsbased on the following embodiments.

In order to make the objectives, technical solutions and advantages ofthe present disclosure clearer, the embodiments of the presentdisclosure are described in further detail below with reference to theaccompanying drawings.

A first embodiment of the present disclosure relates to a method ofdisplaying a geometry in an editor. The editor includes a space windowand a resource list. The space window can display 2D/3D models ofgeometries, and the resource list can display a hierarchicalrelationship between objects. FIG. 2 is a schematic flowchart of amethod for displaying a geometry in an editor. As shown in FIG. 2 , themethod 100 includes:

Step 102: Determine a Boolean operation and a plurality of geometries ina space window.

Specifically, the Boolean operation and the plurality of geometries inthe space window can be received from a user. The Boolean operationincludes intersection, union, negation, etc. The plurality of geometriesinclude 2D geometries, such as cylinders, rectangles, circles, etc.,and/or 3D geometries, such as cylinders, cuboids, spheres, etc. In step102, it is possible to determine the Boolean operation and the pluralityof geometries that are calculated to obtain a composite geometry.

Step 104: Calculate the plurality of geometries in the space windowaccording to the Boolean operation to obtain a composite geometry in thespace window.

The composite geometry includes a 2D geometry, such as a polygon, and/ora 3D geometry, such as a rounded corner wall. The composite geometry canbe obtained in step 104.

Step 106: Create a plurality of objects in the resource list. Theplurality of objects correspond to the plurality of geometries that arecalculated to obtain the composite geometry and the composite geometry.It sets the objects corresponding to the plurality of geometries assub-nodes of the object corresponding to the composite geometry.

In step 106, a corresponding relationship between the objects in theresource list and the geometries in the space window can be implemented,and there is a hierarchical relationship between the objects in theresource list, so that a subordination relationship between thecomposite geometry in the space window and the plurality of geometriesthat are calculated to obtain the composite geometry can be intuitivelydisplayed.

Return to step 102. When it is determined that there is no Booleanoperation, the obtained composite geometry in the space window is afinal composite geometry, and the plurality of objects created in theresource list are final objects.

Specifically, when the Boolean operation is no longer received from theuser, the obtained composite geometry in the space window is the finalcomposite geometry, and the plurality of objects created in the resourcelist are the final objects.

FIG. 3 is a schematic diagram of a hierarchical relationship of aplurality of objects in a resource list. As shown in FIG. 3 , forexample, it is determined that a Boolean operation is intersection, andit is determined that the plurality of geometries in a space window area cylinder Geometry1 and a negation cylinder Geometry2 (negation). Theplurality of geometries Geometry1, Geometry2 (negation) in the spacewindow are calculated according to the Boolean operation to obtain acomposite geometry Geometry1.1 in the space window. A plurality ofobjects Object1.1, Object1, Object2 (negation) are created in theresource list. The plurality of objects Object1.1, Object1, Object2(negation) respectively correspond to the composite geometryGeometry1.1, and the plurality of geometries Geometry1 and Geometry2(negation) that calculated to obtain the composite geometry Geometry1.1.The objects Object1 and Object2 (negation) corresponding to theplurality of geometries Geometry1, Geometry2 (negation) are set assub-nodes of the object Object1.1 corresponding to the compositegeometry Geometry1.1.

Return to the step of determining a Boolean operation and the pluralityof geometries in a space window. When it is determined that there is noBoolean operation, the composite geometry Geometry1.1 obtained in thespace window is a final composite geometry, and the plurality of objectsObject1.1, Object1, Object2 (negation) created in the resource list arefinal objects.

Optionally, when the plurality of geometries in the space window aredetermined, the plurality of geometries include a composite geometry.

Specifically, the composite geometry and/or a newly added geometry maybe received from a user. Therefore, the user can perform calculation onthe composite geometry again. In this way, a more complex compositegeometry can be obtained by a plurality of Boolean operations. A currentBoolean operation is performed on a result of a previous Booleanoperation.

FIG. 4 is another schematic diagram of a hierarchical relationship of aplurality of objects in a resource list. As shown in FIG. 4 , as anexample discussed in FIG. 3 , return to the step of determining aBoolean operation and the plurality of geometries in the space window.It is determined that the Boolean operation is intersection, and it isdetermined that the plurality of geometries in the space window are anegation cuboid Geometry3 (negation) and the composite geometryGeometry1.1. The plurality of geometries Geometry3 (negation),Geometry1.1 in the space window are calculated according to the Booleanoperation to obtain a composite geometry Geometry1.2 in the spacewindow. A plurality of objects Object1.2, Object3 (negation), Object1.1are created in the resource list. The plurality of objects Object1.2,Object3 (negation), Object1.1 respectively correspond to the compositegeometry Geometry1.2 and the plurality of geometries Geometry3(negation), Geometry1.1 that calculated to obtain the composite geometryGeometry1.2. The objects Object3 (negation), Object1.1 corresponding tothe plurality of geometries Geometry3 (negation), Geometry1.1 are set assub-nodes of the object Object1.2 corresponding to the compositegeometry Geometry1.2.

Return to the step of determining a Boolean operation and a plurality ofgeometries in the space window. It is determined that the Booleanoperation is intersection, and it is determined that the plurality ofgeometries in the space window are negation cuboid Geometry4 (negation)and the composite geometry Geometry1.2. The plurality of geometriesGeometry4 (negation), Geometry1.2 in the space window are calculatedaccording to the Boolean operation to obtain a composite geometryGeometry1.3 in the space window. A plurality of objects Object1.3,Object4 (negation), Object1.2 are created in the resource list. Theplurality of objects Object1.3, Object4 (negation), Object1.2respectively correspond to the composite geometry Geometry1.3 and theplurality of geometries Geometry4 (negation), Geometry1.2 thatcalculated to obtain the composite geometry Geometry1.3. The objectsObject4 (negation), Object1.2 corresponding to the plurality ofgeometries Geometry4 (negation), Geometry1.2 are set as sub-nodes of theobject Object1.3 corresponding to the composite geometry Geometry1.3.

Return to the step of determining a Boolean operation and a plurality ofgeometries in the space window. It is determined that the Booleanoperation is intersection, and it is determined that the plurality ofgeometries in the space window are a cuboid Geometry5, a cuboidGeometry6, and the composite geometry Geometry1.3. The plurality ofgeometries Geometry5, Geometry6, Geometry1.3 in the space window arecalculated according to the Boolean operation to obtain a compositegeometry Geometry1.4 in the space window. A plurality of objectsObject1.4, Object5, Object6, Object1.3 are created in the resource list.The plurality of objects Object1.4, Object5, Object6, Object1.3respectively correspond to the composite geometry Geometry1.4 and theplurality of geometries Geometry5, Geometry6, and Geometry1.3 that arecalculated to obtain the composite geometry Geometry1.4. The objectsObject5, Object6, and Object1.3 corresponding to the plurality ofgeometries Geometry5, Geometry6, and Geometry1.3 are set as sub-nodes ofthe object Object1.4 corresponding to the composite geometryGeometry1.4.

Return to the step of determining a Boolean operation and a plurality ofgeometries in the space window. When it is determined that there is noBoolean operation, the obtained composite geometry Geometry1.4 in thespace window is the final composite geometry, and the plurality ofobjects Object1.4, Object5, Object6, and Object1.3 created in theresource list are the final objects.

Optionally, if the geometry corresponding to the object set as asub-node is a composite geometry, a plurality of objects are furthercreated in the resource list. The plurality of objects respectivelycorrespond to a plurality of geometries that are calculated to obtainthe composite geometry, and the plurality of objects are set assub-nodes of the object that is set as a sub-node.

Therefore, the objects in the resource list have a clearer hierarchicalrelationship, so that a clearer subordination relationship between aplurality of geometries in the space window can be intuitivelydisplayed.

FIG. 5 is another schematic diagram of a hierarchical relationship of aplurality of objects in a resource list. As shown in FIG. 5 , as theexample discussed in FIG. 4 , the geometry Geometry1.3 corresponding tothe object Object1.3 that is set as a sub-node is a composite geometry.A plurality of objects Object4 (negation), Object1.2 are further createdin the resource list. The plurality of objects Object4 (negation) andObject1.2 respectively correspond to the a plurality of geometriesGeometry4 (negation) and Geometry1.2 that are calculated to obtain thecomposite geometry Geometry1.3. The plurality of objects Object4(negation) and Object1.2 are set as sub-nodes of the object Object1.3that is set as a sub-node.

The geometry Geometry1.2 corresponding to the object Object1.2 that isset as a sub-node is a composite geometry. A plurality of objectsObject3 (negation), Object1.1 are further created in the resource list.The plurality of objects Object3 (negation), Object1.1 respectivelycorrespond to a plurality of geometries Geometry3 (negation),Geometry1.1 that are calculated to obtain the composite geometryGeometry1.2. The plurality of objects Object3 (negation), Object1.1 areset as sub-nodes of the object Object1.2 that is set as a sub-node.

The geometry Geometry1.1 corresponding to the object Object1.1 that isset as a sub-node is a composite geometry. A plurality of objectsObject1, Object2 (negation) are further created in the resource list.The plurality of objects Object1, Object2 (negation) respectivelycorrespond to a plurality of geometries Geometry1, Geometry2 (negation)that calculated to obtain the composite geometry Geometry1.1. Theplurality of objects Object1, Object2 (negation) are set as sub-nodes ofthe object Object1.1 that is set as a sub-node.

Optionally, the object with sub-nodes includes an expanded state and aretracted state.

Therefore, the user can directly modify the object that is set as asub-node, thereby modifying the geometry corresponding to the objectwith sub-nodes.

FIG. 6 is a schematic diagram of all objects with sub-nodes in aresource list in an expanded state. As shown in FIG. 6 , as the examplediscussed in FIG. 5 , all objects with sub-nodes are in an expandedstate.

FIG. 7 is a schematic diagram of all objects with sub-nodes in aresource list in a retracted state. As shown in FIG. 7 , as the examplediscussed in FIG. 5 , all objects with sub-nodes are in a retractedstate.

Optionally, when the object with sub-nodes is switched from theretracted state to the expanded state, the object with sub-nodes and theobject that is set as a sub-node are set to be displayed in the resourcelist. The geometry corresponding to the object with sub-nodes is set tobe hidden in the space window, and the geometry corresponding to theobject that is set as a sub-node is set to be displayed.

As the example discussed in FIG. 7 , when the object Object1.4 withsub-nodes is switched from the retracted state to the expanded state,the object Object1.4 with sub-nodes and the objects Object5, Object6,Object1.3 that are set as sub-nodes in the resource list are set to bedisplayed. The geometry Geometry1.4 corresponding to the objectObject1.4 with sub-nodes in the space window is set to be hidden, andthe geometries Geometry5, Geometry6, Geometry1.3 corresponding to theobjects Object5, Object6, Object1.3 that are set as sub-nodes are set tobe displayed.

Optionally, if the geometry corresponding to the object that is set as asub-node is a composite geometry, the object corresponding to thecomposite geometry is switched from the retracted state to the expandedstate.

If the geometry corresponding to the object that is set as a sub-node isa composite geometry, the object corresponding to the composite geometryhas sub-nodes, and therefore also includes the expanded state and theretracted state.

As the example discussed above, because the geometry Geometry1.3corresponding to the object Object1.3 that is set as a sub-node is acomposite geometry, the object Object1.3 corresponding to the compositegeometry is switched from the retracted state to the expanded state. Theobject Object1.3 with sub-nodes and the objects Object4 (negation),Object1.2 that are set as sub-nodes are set to be displayed in theresource list. The geometry Geometry1.3 corresponding to the objectObject1.3 with sub-nodes is set to be hidden in the space window. Thegeometries Geometry4 (negation), Geometry1.2 corresponding to theobjects Object4 (negation), Object1.2 that are set as sub-nodes are setto be displayed.

Because the geometry Geometry1.2 corresponding to the object Object1.2that is set as a sub-node is a composite geometry, the object Object1.2corresponding to the composite geometry is switched from the retractedstate to the expanded state. The object Object1.2 with sub-nodes and theobjects Object3 (negation), Object1.1 that are set as sub-nodes are setto be displayed in the resource list. The geometry Geometry1.2corresponding to the object Object1.2 with sub-nodes is set to be hiddenin the space window. The geometries Geometry3 (negation), Geometry1.1corresponding to the objects Object3 (negation), Object1.1 that are setas sub-nodes are set to be displayed.

Because the geometry Geometry1.1 corresponding to the object Object1.1that is set as a sub-node is a composite geometry, the object Object1.1corresponding to the composite geometry is switched from the retractedstate to the expanded state. The object Object1.1 with sub-nodes and theobjects Object1, Object2 (negation) that are set as sub-nodes are set tobe displayed in the resource list. The geometry Geometry1.1corresponding to the object Object1.1 with sub-nodes is set to be hiddenin the space window. The geometries Geometry1, Geometry2 (negation)corresponding to the objects Object1, Object2 (negation) that are set assub-nodes are set to be displayed.

Finally, all objects with sub-nodes can be switched from the retractedstate to the expanded state. Certainly, only some of the objects withsub-nodes may be expanded.

Optionally, when an object with sub-nodes is switched from the expandedstate to the retracted state, it is determined whether the geometrycorresponding to the object that is set as a sub-node is modified.

If the geometry corresponding to the object that is set as a sub-node ismodified, the Boolean operation is performed on the modified geometryand the remaining unmodified geometry, where the Boolean operation isperformed to obtain the geometry corresponding to the object withsub-nodes, so as to obtain a new composite geometry in the space window.A plurality of new objects are created in the resource list, theplurality of new objects respectively correspond to the new compositegeometry, the modified geometry, and the remaining unmodified geometry,and replace the object with sub-nodes and the object that is set as asub-node. The object corresponding to the new composite geometry is setto be displayed, and the objects corresponding to the modified geometryand the remaining unmodified geometry are set to be hidden. The newcomposite geometry is set to be displayed in the space window, and themodified geometry and the remaining unmodified geometry are set to behidden.

If the geometry corresponding to the object that is set as a sub-node isnot modified, the object with sub-nodes is set to be displayed in theresource list, and the object that is set as a sub-node is set to behidden. The geometry corresponding to the object with sub-nodes is setto be displayed in the space window, and the geometry corresponding tothe object that is set as a sub-node is set to be hidden.

Specifically, there may be one or more geometries to be modified.Modifications include modifying a size, a position, and a direction,etc., of the geometry. A hierarchy of the replaced object in theresource list is the same as a hierarchy of the object to be replaced inthe resource list.

As the example discussed in FIG. 6 , when the object Object1.4 withsub-nodes is switched from the expanded state to the retracted state, itis determined whether the geometries Geometry5, Geometry6, Geometry1.3corresponding to the objects Object5, Object6, and Object1.3 that areset as sub-nodes are modified.

If the geometries Geometry5, Geometry6, and Geometry1.3 corresponding tothe objects Object5, Object6, and Object1.3 that are set as sub-nodesare modified, for example, if the geometry Geometry5 is modified to thegeometry Geometry5′, the Boolean operation is performed on the modifiedgeometry Geometry5′ and the remaining unmodified geometries Geometry6,Geometry1.3. The Boolean operation is performed to obtain the geometryGeometry1.4 corresponding to the object Object1.4 with sub-nodes, thatis, intersection is performed, so as to obtain a new composite geometryGeometry1.4′ in the space window. A plurality of new objects Object1.4(new), Object5 (new), Object6 (new), Object1.3 (new) are created in theresource list. The plurality of new objects Object1.4 (new), Object5(new), Object6 (new), Object1.3 (new) respectively correspond to the newcomposite geometry Geometry1.4′ and the modified geometry Geometry5′ andthe remaining unmodified geometries Geometry6, Geometry1.3, and replacethe object Object1.4 with sub-nodes and the objects Object5, Object6,Object1.3 that are set as sub-nodes. The object Object1.4 (new)corresponding to the new composite geometry Geometry1.4′ is set to bedisplayed. The objects Object5 (new), Object6 (new), and Object1.3 (new)corresponding to the modified geometry Geometry5′ and the remainingunmodified geometries Geometry6, Geometry1.3 are set to be hidden. Thenew composite geometry Geometry1.4′ is set to be displayed in the spacewindow, and the modified geometry Geometry5′ and the remainingunmodified geometries Geometry6, Geometry1.3 are set to be hidden.

If none of the geometries Geometry5, Geometry6, and Geometry1.3corresponding to the objects Object5, Object6, and Object1.3 that areset as sub-nodes is modified, the object Object1.4 with sub-nodes is setto be displayed in the resource list, and the objects Object5, Object6,and Object1.3 that are set as sub-nodes are set to be hidden. Thegeometry Geometry1.4 corresponding to the object Object1.4 withsub-nodes is set to be displayed in the space window, and the geometriesGeometry5, Geometry6, Geometry1.3 corresponding to the objects Object5,Object6, Object1.3 that are set as sub-nodes are set to be hidden.

Optionally, if the geometry corresponding to the object that is set as asub-node is modified, the Boolean operation is performed on the modifiedgeometry and the remaining unmodified geometry. The Boolean operation isperformed to obtain the geometry corresponding to the object withsub-nodes, so as to obtain a new composite geometry in the space window.A plurality of new objects are created in the resource list, and theplurality of new objects respectively correspond to the new compositegeometry and the modified geometry, and replace the object withsub-nodes and the object corresponding to the geometry to be modified.The object corresponding to the new composite geometry is set to bedisplayed, and the objects corresponding to the modified geometry andthe remaining unmodified geometry are set to be hidden. The newcomposite geometry is set to be displayed in the space window, and themodified geometry and the remaining unmodified geometry are set to behidden.

As the example discussed above, if the geometries Geometry5, Geometry6,and Geometry1.3 corresponding to the objects Object5, Object6, andObject1.3 that are set as sub-nodes are modified, for example, if thegeometry Geometry5 is modified to the geometry Geometry5′, the Booleanoperation is performed on the modified geometry Geometry5′ and theremaining unmodified geometries Geometry6, Geometry1.3. The Booleanoperation is performed to obtain the geometry Geometry1.4 correspondingto the object Object1.4 with sub-nodes, that is, intersection isperformed, so as to obtain a new composite geometry Geometry1.4′ in thespace window. A plurality of new objects Object1.4 (new), Object5 (new)are created in the resource list, and the plurality of new objectsObject1.4 (new), Object5 (new) respectively correspond to the newcomposite geometry Geometry1.4′ and the modified geometry Geometry5′,and replace the object Object1.4 with sub-nodes and the objects Object5corresponding to the geometry Geometry5 to be modified. The objectObject1.4 (new) corresponding to the new composite geometry Geometry1.4′is set to be displayed, and the objects Object5 (new), Object6 (new),and Object1.3 (new) corresponding to the modified geometry Geometry5′and the remaining unmodified geometries Geometry6, Geometry1.3 are setto be hidden. The new composite geometry Geometry1.4′ is set to bedisplayed in the space window, and the modified geometry Geometry5′ andthe remaining unmodified geometries Geometry6, Geometry1.3 are set to behidden.

Optionally, if the geometry corresponding to the object that is set as asub-node is modified, the Boolean operation is performed on the modifiedgeometry and the remaining unmodified geometry, where the Booleanoperation is performed to obtain the geometry corresponding to theobject with sub-nodes, so as to obtain a new composite geometry in thespace window. The object with sub-nodes in the resource list correspondsto the new composite geometry, and the object corresponding to thegeometry to be modified corresponds to the modified geometry. The objectcorresponding to the new composite geometry is set to be displayed, andthe objects corresponding to the modified geometry and the remainingunmodified geometry are set to be hidden. The new composite geometry isset to be displayed in the space window, and the modified geometry andthe remaining unmodified geometry are set to be hidden.

Specifically, the object with sub-nodes corresponds to the new compositegeometry, and no longer corresponds to the previous object, and theobject corresponding to the geometry to be modified corresponds to themodified geometry, and no longer corresponds to the geometry to bemodified.

As the example discussed above, if the geometries Geometry5, Geometry6,Geometry1.3 corresponding to the objects Object5, Object6, and Object1.3that are set as sub-nodes are modified, for example, if the geometryGeometry5 is modified to the geometry Geometry5′, the Boolean operationis re-performed on the modified geometry Geometry5′ and the remainingunmodified geometries Geometry6, Geometry1.3, where the Booleanoperation is performed to obtain the geometry Geometry1.4 correspondingto the object Object1.4 with sub-nodes, that is, intersection isperformed, so as to obtain a new composite geometry Geometry1.4′ in thespace window. In the resource list, the object Object1.4 with sub-nodescorresponds to the new composite geometry Geometry1.4′, and the objectObject5 corresponding to the geometry Geometry5 to be modifiedcorresponds to the modified geometry Geometry5′. The object Object1.4corresponding to the new composite geometry Geometry1.4′ is set to bedisplayed, and the objects Object5, Object6, and Object1.3 correspondingto the modified geometry Geometry5′ and the remaining unmodifiedgeometries Geometry6, Geometry1.3 are set to be hidden. The newcomposite geometry Geometry1.4′ is set to be displayed in the spacewindow, and the modified geometry Geometry5′ and the remainingunmodified geometries Geometry6, Geometry1.3 are set to be hidden.

Optionally, if the geometry to be modified is a composite geometry, theobject corresponding to the composite geometry is switched from theexpanded state to the retracted state.

If the geometry to be modified is a composite geometry, the objectcorresponding to the composite geometry has sub-nodes, and thereforealso includes the expanded state and the retracted state.

As the example discussed above, for example, the geometry Geometry1.3 ismodified. Because the geometry to be modified Geometry1.3 is a compositegeometry, the object Object1.3 corresponding to the composite geometryis switched from the expanded state to the retracted state. It isdetermined whether the geometries Geometry4 (negation), Geometry1.2corresponding to the objects Object4 (negation), Object1.2 that are setas sub-nodes are modified. If the geometries Geometry4 (negation),Geometry1.2 corresponding to the objects Object4 (negation), Object1.2that are set as sub-nodes are modified, for example, the geometryGeometry1.2 is modified, since the geometry to be modified Geometry1.2is a composite geometry, the object Object1.2 corresponding to thecomposite geometry is switched from the expanded state to the retractedstate.

It is determined whether the geometries Geometry3 (negation),Geometry1.1 corresponding to the objects Object3 (negation), Object1.1that are set as sub-nodes are modified. If the geometries Geometry3(negation), Geometry1.1 corresponding to the objects Object3 (negation),Object1.1 that are set as sub-nodes are modified, for example, thegeometry Geometry1.1 is modified, since the geometry to be modifiedGeometry1.1 is a composite geometry, the object Object1.1 correspondingto the composite geometry is switched from the expanded state to theretracted state.

It is determined whether the geometries Geometry1, Geometry2 (negation)corresponding to the objects Object1, Object2 (negation) that are set assub-nodes are modified. If the geometries Geometry1, Geometry2(negation) corresponding to the objects Object1, Object2 (negation) thatare set as sub-nodes are modified, for example, if the geometryGeometry2 (negation) is modified to the geometry Geometry2′ (negation),the Boolean operation is re-performed on the modified geometryGeometry2′ and the remaining unmodified geometry Geometry 1. The Booleanoperation is performed to obtain the geometry Geometry1.1 correspondingto the object Object1.1 with sub-nodes, that is, intersection isperformed, so as to obtain a new composite geometry Geometry1.1′ in thespace window. In the resource list, the object Object1.1 with sub-nodescorresponds to the new composite geometry Geometry1.1′, and the objectObject2 (negation) corresponding to the geometry to be modifiedGeometry2 (negation) corresponds to the modified geometry Geometry2′(negation). The object Object1.1 corresponding to the new compositegeometry Geometry1.1′ is set to be displayed, and the objects Object2(negation), Object1 corresponding to the modified geometry Geometry2′(negation) and the remaining unmodified geometry Geometry1 are set to behidden. The new composite geometry Geometry 1.1′ is set to be displayedin the space window, and the modified geometry Geometry2′ (negation) andthe remaining unmodified geometry Geometry1 are set to be hidden.

Next, the object Object1.2 corresponding to the composite geometry isswitched from the expanded state to the retracted state, and the Booleanoperation is performed on the modified geometry Geometry1.1′ and theremaining unmodified geometry Geometry3 (negation), where the Booleanoperation is performed to obtain the geometry Geometry1.2 correspondingto the object Object1.2 with sub-nodes, that is, intersection isperformed, so as to obtain a new composite geometry Geometry1.2′ in thespace window. In the resource list, the object Object1.2 with sub-nodescorresponds to the new composite geometry Geometry1.2′, and the objectObject1.1 corresponding to the geometry Geometry1.1 to be modifiedcorresponds to the modified geometry Geometry1.1′. The object Object1.2corresponding to the new composite geometry Geometry1.2′ is set to bedisplayed, and the objects Object1.1, Object3 (negation) correspondingto the modified geometry Geometry1.1′ and the remaining unmodifiedgeometry Geometry3 (negation) are set to be hidden. The new compositegeometry Geometry1.2′ is set to be displayed in the space window, andthe modified geometry Geometry1.1′ and the remaining unmodified geometryGeometry3 (negation) are set to be hidden.

Next, the object Object1.3 corresponding to the composite geometry isswitched from the expanded state to the retracted state, and the Booleanoperation is performed on the modified geometry Geometry1.2′ and theremaining unmodified geometry Geometry4 (negation). The Booleanoperation is performed to obtain the geometry Geometry1.3 correspondingto the object Object1.3 with sub-nodes, that is, intersection isperformed, so as to obtain a new composite geometry Geometry1.3′ in thespace window. In the resource list, the object Object1.3 with sub-nodescorresponds to the new composite geometry Geometry1.3′, and the objectObject1.2 corresponding to the geometry Geometry1.2 to be modifiedcorresponds to the modified geometry Geometry1.2′. The objects Object1.3corresponding to the new composite geometry Geometry1.3′ is set to bedisplayed, and the objects Object1.2, Object4 (negation) correspondingto the modified geometry Geometry1.2′ and the remaining unmodifiedgeometry Geometry4 (negation) are set to be hidden. The new compositegeometry Geometry1.3′ is set to be displayed in the space window, andthe modified geometry Geometry1.2′ and the remaining unmodified geometryGeometry4 (negation) are set to be hidden.

Next, the object Object1.4 corresponding to the composite geometry isswitched from the expanded state to the retracted state, and the Booleanoperation is performed on the modified geometry Geometry1.3′ and theremaining unmodified geometries Geometry5, Geometry6. The Booleanoperation is performed to obtain the geometry Geometry1.4 correspondingto the object Object1.4 with sub-nodes, that is, intersection isperformed, so as to obtain a new composite geometry Geometry1.4′ in thespace window. In the resource list, the object Object1.4 with sub-nodescorresponds to the new composite geometry Geometry1.4′, and the objectObject1.3 corresponding to the geometry Geometry1.3 to be modifiedcorresponds to the modified geometry Geometry1.3′. The object Object1.4corresponding to the new composite geometry Geometry1.4′ is set to bedisplayed, and the objects Object1.3, Object5, Object6 corresponding tothe modified geometry Geometry1.3′ and the remaining unmodifiedgeometries Geometry5, Geometry 6 are set to be hidden. The new compositegeometry Geometry1.4′ is set to be displayed in the space window, andthe modified geometry Geometry1.3′ and the remaining unmodifiedgeometries Geometry5, Geometry 6 are set to be hidden.

Finally, all objects with sub-nodes can be switched from the expandedstate to the retracted state. Certainly, only some of the objects withsub-nodes may be retracted.

A second embodiment of the present disclosure relates to a system fordisplaying a geometry in an editor. The editor includes a space windowand a resource list. FIG. 8 is a schematic structural diagram of asystem for displaying a geometry in an editor. As shown in FIG. 8 , thesystem 200 includes:

-   -   a determining unit 202 configured to determine a Boolean        operation and a plurality of geometries in the space window;    -   a calculation unit 204 configured to calculate the plurality of        geometries in the space window according to the Boolean        operation to obtain a composite geometry in the space window;    -   an object creating unit 206 configured to create a plurality of        objects in the resource list, wherein the plurality of objects        respectively correspond to the composite geometry and the        plurality of geometries that are calculated to obtain the        composite geometry, and set the objects corresponding to the        plurality of geometries as sub-nodes of an object corresponding        to the composite geometry; and    -   return to the determining unit 202, when the determining unit        determines that there is no Boolean operation, the composite        geometry obtained by the calculation unit in the space window is        a final composite geometry, and the plurality of objects created        by the object creating unit in the resource list are final        objects

Optionally, when the plurality of geometries in the space window aredetermined, the plurality of geometries comprise a composite geometry.

Optionally, if the geometry corresponding to an object that is set as asub-node is a composite geometry, the object creating unit furthercreates a plurality of objects in the resource list, wherein theplurality of objects respectively correspond to the plurality ofgeometries that are calculated to obtain the composite geometry, and setthe plurality of objects as sub-nodes of the object that is set as asub-node.

Optionally, the object with sub-nodes comprises an expanded state and aretracted state.

FIG. 9 is another schematic structural diagram of a system fordisplaying a geometry in an editor. As shown in FIG. 9 , optionally, thesystem 200 further includes an object state switching unit 208. When anobject with sub-nodes is switched from an expanded state to a retractedstate, the object state switching unit 208 is configured to:

-   -   set the object with sub-nodes and the object that is set as a        sub-node to be displayed in the resource list; and    -   set the geometry corresponding to the object with sub-nodes to        be hidden and set the geometry corresponding to the object that        is set as a sub-node to be displayed in the space window.

Optionally, if the geometry corresponding to the object that is set as asub-node is a composite geometry, the object state switching unit 208 isconfigured to switch the object corresponding to the composite geometryfrom the retracted state to the expanded state.

Optionally, the system 200 further includes an object state switchingunit 208, and when an object with sub-nodes is switched from theexpanded state to the retracted state, the object state switching unit208 is configured to:

-   -   determine whether the geometry corresponding to the object that        is set as a sub-node is modified;    -   if the geometry corresponding to the object that is set as a        sub-node is modified, re-perform the Boolean operation on the        modified geometry and the remaining unmodified geometry, wherein        the Boolean operation is performed to obtain the geometry        corresponding to the object with sub-nodes, so as to obtain a        new composite geometry in the space window; create a plurality        of new objects in the resource list, wherein the plurality of        new objects respectively correspond to the new composite        geometry, the modified geometry, and the remaining unmodified        geometry, and replace the object with sub-nodes and the object        that is set as a sub-node; set the object corresponding to the        new composite geometry to be displayed, and set the objects        corresponding to the modified geometry and the remaining        unmodified geometry to be hidden; set the new composite geometry        be displayed, and set the modified geometry and the remaining        unmodified geometry to be hidden in the space window; and    -   if no geometry corresponding to the object that is set as a        sub-node is modified, set the object with sub-nodes to be        displayed and set the object that is set as a sub-node to be        hidden in the resource list; set the geometry corresponding to        the object with sub-nodes to be displayed and set the geometry        corresponding to the object that is set as a sub-node to be        hidden in the space window.

Optionally, if the geometry corresponding to the object that is set as asub-node is modified, the Boolean operation is re-performed on themodified geometry and the remaining unmodified geometry, wherein theBoolean operation is performed to obtain the geometry corresponding tothe object with sub-nodes, so as to obtain a new composite geometry inthe space window; a plurality of new objects are created in the resourcelist, and the plurality of new objects respectively correspond to thenew composite geometry and the modified geometry, and replace the objectwith sub-nodes and the object corresponding to the geometry to bemodified; the object corresponding to the new composite geometry is setto be displayed, and the objects corresponding to the modified geometryand the remaining unmodified geometry are set to be hidden; the newcomposite geometry is set to be displayed and the modified geometry andthe remaining unmodified geometry are set to be hidden in the spacewindow.

Optionally, if the geometry corresponding to the object that is set as asub-node is modified, the Boolean operation is re-performed on themodified geometry and the remaining unmodified geometry, and the Booleanoperation is performed to obtain the geometry corresponding to theobject with sub-nodes, so as to obtain a new composite geometry in thespace window; in the resource list, the object with sub-nodescorresponds to the new composite geometry, and the object correspondingto the geometry to be modified corresponds to the modified geometry; theobject corresponding to the new composite geometry is set to bedisplayed, and the objects corresponding to the modified geometry andthe remaining unmodified geometry are set to be hidden; the newcomposite geometry is set to be displayed and the modified geometry andthe remaining unmodified geometry are set to be hidden in the spacewindow.

Optionally, if the geometry to be modified is a composite geometry, theobject state switching unit 208 is used to switch the objectcorresponding to the composite geometry from the expanded state to theretracted state.

The first embodiment is a method embodiment corresponding to thisembodiment, and this embodiment can be implemented in cooperation withthe first embodiment. The related technical details mentioned in thefirst embodiment are still valid in this embodiment. In order to reducerepetition, details are not described herein. Correspondingly, therelated technical details mentioned in this embodiment can also beapplied in the first embodiment.

A third embodiment of the present disclosure relates to a device fordisplaying a geometry in an editor. The device includes a memory storinga computer-executable instruction and a processor. The processor isconfigured to execute the instruction to implement a method fordisplaying a geometry in an editor.

The first embodiment is a method embodiment corresponding to thisembodiment, and this embodiment can be implemented in cooperation withthe first embodiment. The related technical details mentioned in thefirst embodiment are still valid in this embodiment. In order to reducerepetition, details are not described herein. Correspondingly, therelated technical details mentioned in this embodiment can also beapplied in the first embodiment.

A fourth embodiment of the present disclosure relates to a non-volatilecomputer storage medium encoded with a computer program. The computerprogram includes an instruction. The instruction is executed by morethan one computer to implement a method of displaying a geometry in aneditor.

The first embodiment is a method embodiment corresponding to thisembodiment, and this embodiment can be implemented in cooperation withthe first embodiment. The related technical details mentioned in thefirst embodiment are still valid in this embodiment. In order to reducerepetition, details are not described herein. Correspondingly, therelated technical details mentioned in this embodiment can also beapplied in the first embodiment.

It should be noted that all method implementations of the presentdisclosure can be implemented in software, hardware, firmware, and thelike. Regardless of whether the present disclosure is implemented insoftware, hardware, or firmware, an instruction code can be stored inany type of computer accessible memory (for example, permanent ormodifiable, volatile or nonvolatile, solid or non-solid, fixed orreplaceable media, etc.). Similarly, the memory may be, for example,programmable array logic (Programmable Array Logic, “PAL”), a randomaccess memory (Random Access Memory, “RAM”), and a programmable readonly memory (Programmable Read Only Memory, “PROM”), a read-only memory(Read-Only Memory, “ROM”), an electrically erasable programmable readonly memory (Electrically Erasable Programmable ROM, “EEPROM”), amagnetic disk, an optical disc, a digital versatile disc (DigitalVersatile Disc, “DVD”), and so on.

It should be noted that each unit/module mentioned in each deviceembodiment of the present disclosure is a logical unit/module.Physically, a logical unit/module may be a physical unit, may be a partof a physical unit, or may be implemented in a combination of pluralityof physical units. The physical implementation of these logical units isnot most important. The combination of functions implemented by theselogical units is the key to solving the technical problem raised in thepresent disclosure. Furthermore, in order to highlight the inventivepart of the present disclosure, the device embodiments of the presentdisclosure do not introduce units which are not closely related tosolving the technical problems raised in the present disclosure, whichdoes not indicate that the device embodiments do not have other units.

It is to be noted that in the claims and description of the patent,relational terms such as first and second and the like are used merelyto distinguish one entity or operation from another entity or operation,without necessarily requiring or implying any such actual relationshipor order between such entities or operations. Moreover, the terms“comprises,” “comprising,” or any other variation thereof, are intendedto cover a non-exclusive inclusion, such that a process, a method, anarticle, or a device that includes a list of elements includes not onlythose elements but also other elements not expressly listed, or furtherincludes elements inherent to such process, method, article, or device.Without further limitation, an element defined by the statement“comprising one” does not rule out there are additional identicalelements in the process, method, article, or device that includes theelement.

While the present invention has been illustrated and described withreference to certain preferred embodiments thereof, it should beunderstood by a person of ordinary skill in the art that various changesmay be made in form and detail without departing from the spirit andscope of the present disclosure.

The invention claimed is:
 1. A method for displaying a geometry in aneditor, wherein the editor comprises a space window and a resource list,and the method comprising: determining a Boolean operation and aplurality of geometries in the space window; calculating the pluralityof geometries in the space window according to the Boolean operation toobtain a composite geometry in the space window; creating a plurality ofobjects in the resource list, wherein the plurality of objectsrespectively correspond to the composite geometry and the plurality ofgeometries that are calculated to obtain the composite geometry, andsetting objects corresponding to the plurality of geometries assub-nodes of an object corresponding to the composite geometry; andreturning to the step of determining a Boolean operation and a pluralityof geometries in the space window, wherein when it is determined thatthere is no Boolean operation, the obtained composite geometry in thespace window is a final composite geometry, and the plurality of objectscreated in the resource list are final objects.
 2. The method accordingto claim 1, wherein when the plurality of geometries in the space windoware determined, the plurality of geometries comprise a compositegeometry.
 3. The method according to claim 2, wherein if a geometrycorresponding to an object that is set as a sub-node is a compositegeometry, a plurality of objects are further created in the resourcelist, wherein the plurality of objects respectively correspond to theplurality of geometries that are calculated to obtain the compositegeometry, and the plurality of objects are set as sub-nodes of theobject that is set as a sub-node.
 4. The method according to claim 3,wherein the object with sub-nodes comprises an expanded state and aretracted state.
 5. The method according to claim 4, wherein when theobject with sub-nodes is switched from the retracted state to theexpanded state, the object with sub-nodes and the object that is set asa sub-node are set to be displayed in the resource list; and thegeometry corresponding to the object with sub-nodes is set to be hiddenin the space window, and the geometry corresponding to the object thatis set as a sub-node is set to be displayed.
 6. The method according toclaim 5, wherein if the geometry corresponding to the object that is setas a sub-node is a composite geometry, the object corresponding to thecomposite geometry is switched from the retracted state to the expandedstate.
 7. The method according to claim 4, wherein when the object withsub-nodes is switched from the expanded state to the retracted state, itis determined whether the geometry corresponding to the object that isset as a sub-node is modified; if the geometry corresponding to theobject that is set as a sub-node is modified, the Boolean operation isre-performed on the modified geometry and the remaining unmodifiedgeometry, wherein the Boolean operation is performed to obtain thegeometry corresponding to the object with sub-nodes, so as to obtain anew composite geometry in the space window; a plurality of new objectsare created in the resource list, wherein the plurality of new objectsrespectively correspond to the new composite geometry, the modifiedgeometry, and the remaining unmodified geometry, and replace the objectwith sub-nodes and the object that is set as a sub-node; the objectcorresponding to the new composite geometry is set to be displayed, andthe objects corresponding to the modified geometry and the remainingunmodified geometry are set to be hidden; the new composite geometry isset to be displayed and the modified geometry and the remainingunmodified geometry are set to be hidden in the space window; and if nogeometry corresponding to the object that is set as a sub-node ismodified, the object with sub-nodes is set to be displayed and theobject that is set as a sub-node is set to be hidden in the resourcelist; the geometry corresponding to the object with sub-nodes is set tobe displayed and the geometry corresponding to the object that is set asa sub-node is set to be hidden in the space window.
 8. The methodaccording to claim 7, wherein if the geometry corresponding to theobject that is set as a sub-node is modified, the Boolean operation isre-performed on the modified geometry and the remaining unmodifiedgeometry, wherein the Boolean operation is performed to obtain thegeometry corresponding to the object with sub-nodes, so as to obtain anew composite geometry in the space window; a plurality of new objectsare created in the resource list, wherein the plurality of new objectsrespectively correspond to the new composite geometry and the modifiedgeometry, and replace the object with sub-nodes and the objectcorresponding to the geometry to be modified; the object correspondingto the new composite geometry is set to be displayed, and the objectscorresponding to the modified geometry and the remaining unmodifiedgeometry are set to be hidden; the new composite geometry is set to bedisplayed and the modified geometry and the remaining unmodifiedgeometry are set to be hidden in the space window.
 9. The methodaccording to claim 7, wherein if the geometry corresponding to theobject that is set as a sub-node is modified, the Boolean operation isre-performed on the modified geometry and the remaining unmodifiedgeometry, and the Boolean operation is performed to obtain the geometrycorresponding to the object with sub-nodes, so as to obtain a newcomposite geometry in the space window; in the resource list, the objectwith sub-nodes corresponds to the new composite geometry, and the objectcorresponding to the geometry to be modified corresponds to the modifiedgeometry; the object corresponding to the new composite geometry is setto be displayed, and the objects corresponding to the modified geometryand the remaining unmodified geometry is set to be hidden; the newcomposite geometry is set to be displayed and the modified geometry andthe remaining unmodified geometry are set to be hidden in the spacewindow.
 10. The method according to claim 7, wherein if the geometry tobe modified is a composite geometry, the object corresponding to thecomposite geometry is switched from the expanded state to the retractedstate.
 11. A system for displaying a geometry in an editor, wherein theeditor comprises a space window and a resource list, and the systemcomprising: at least one processor; and memory communicatively coupledto the at least one processor, wherein the memory stores instructionswhich, when executed by the at least one processor, cause: determining aBoolean operation and a plurality of geometries in the space window;calculating the plurality of geometries in the space window according tothe Boolean operation to obtain a composite geometry in the spacewindow; creating a plurality of objects in the resource list, whereinthe plurality of objects respectively correspond to the compositegeometry and the plurality of geometries that are calculated to obtainthe composite geometry; setting the objects corresponding to theplurality of geometries as sub-nodes of an object corresponding to thecomposite geometry; and based on the determining that there is noBoolean operation, the composite geometry in the space window is a finalcomposite geometry, and the plurality of objects in the resource listare final objects.
 12. The system according to claim 11, wherein whenthe plurality of geometries in the space window are determined, theplurality of geometries comprise a composite geometry.
 13. The systemaccording to claim 12, wherein if the geometry corresponding to anobject that is set as a sub-node is a composite geometry, the processorfurther creates a plurality of objects in the resource list, wherein theplurality of objects respectively correspond to the plurality ofgeometries that are calculated to obtain the composite geometry, and setthe plurality of objects as sub-nodes of the object that is set as asub-node.
 14. The system according to claim 13, wherein the object withsub-nodes comprises an expanded state and a retracted state.
 15. Thesystem according to claim 14, wherein when the object with sub-nodes isswitched from the retracted state to the expanded state, theinstructions which, when executed by the at least one processor, furthercause: setting the object with sub-nodes and the object that is set as asub-node to be displayed in the resource list; setting the geometrycorresponding to the object with sub-nodes to be hidden; and setting thegeometry corresponding to the object that is set as a sub-node to bedisplayed in the space window.
 16. The system according to claim 15,wherein if the geometry corresponding to the object that is set as asub-node is a composite geometry, the processor is configured to switchthe object corresponding to the composite geometry from the retractedstate to the expanded state.
 17. The system according to claim 14,wherein when the object with sub-nodes is switched from the expandedstate to the retracted state, the instructions which, when executed bythe at least one processor, further cause: determining whether thegeometry corresponding to the object that is set as a sub-node ismodified; if the geometry corresponding to the object that is set as asub-node is modified: re-performing the Boolean operation on themodified geometry and the remaining unmodified geometry, wherein theBoolean operation is performed to obtain the geometry corresponding tothe object with sub-nodes, so as to obtain a new composite geometry inthe space window; creating a plurality of new objects in the resourcelist, wherein the plurality of new objects respectively correspond tothe new composite geometry, the modified geometry, and the remainingunmodified geometry; replacing the object with sub-nodes and the objectthat is set as a sub-node; setting the object corresponding to the newcomposite geometry to be displayed; setting the objects corresponding tothe modified geometry and the remaining unmodified geometry to behidden; setting the new composite geometry be displayed, and set themodified geometry and the remaining unmodified geometry to be hidden inthe space window; and if no geometry corresponding to the object that isset as a sub-node is modified: setting the object with sub-nodes to bedisplayed and set the object that is set as a sub-node to be hidden inthe resource list; setting the geometry corresponding to the object withsub-nodes to be displayed; and setting the geometry corresponding to theobject that is set as a sub-node to be hidden in the space window. 18.The system according to claim 17, wherein if the geometry correspondingto the object that is set as a sub-node is modified, the Booleanoperation is re-performed on the modified geometry and the remainingunmodified geometry, wherein the Boolean operation is performed toobtain the geometry corresponding to the object with sub-nodes, so as toobtain a new composite geometry in the space window; a plurality of newobjects are created in the resource list, and the plurality of newobjects respectively correspond to the new composite geometry and themodified geometry, and replace the object with sub-nodes and the objectcorresponding to the geometry to be modified; the object correspondingto the new composite geometry is set to be displayed, and the objectscorresponding to the modified geometry and the remaining unmodifiedgeometry are set to be hidden; the new composite geometry is set to bedisplayed and the modified geometry and the remaining unmodifiedgeometry are set to be hidden in the space window.
 19. The systemaccording to claim 17, wherein if the geometry corresponding to theobject that is set as a sub-node is modified, the Boolean operation isre-performed on the modified geometry and the remaining unmodifiedgeometry, and the Boolean operation is performed to obtain the geometrycorresponding to the object with sub-nodes, so as to obtain a newcomposite geometry in the space window; in the resource list, the objectwith sub-nodes corresponds to the new composite geometry, and the objectcorresponding to the geometry to be modified corresponds to the modifiedgeometry; the object corresponding to the new composite geometry is setto be displayed, and the objects corresponding to the modified geometryand the remaining unmodified geometry are set to be hidden; the newcomposite geometry is set to be displayed and the modified geometry andthe remaining unmodified geometry are set to be hidden in the spacewindow.
 20. The system according to claim 17, wherein if the geometry tobe modified is a composite geometry, the processor switches the objectcorresponding to the composite geometry from the expanded state to theretracted state.
 21. A device for displaying a geometry in an editor,wherein the device comprises a memory in which a computer-executableinstruction is stored and a processor, and the processor is configuredto execute the instruction to implement the method for displaying ageometry in an editor according to claim
 1. 22. A non-volatile computerstorage medium coded with a computer program, wherein the computerprogram comprises an instruction, and the instruction is executed bymore than one computer to implement the method for displaying a geometryin an editor according to claim 1.